<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册（第二步）</title>
<link href="<?php echo $this->_webroot('style/register.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('style/css.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_webroot('style/content.css'); ?>" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function changImg(id){
document.getElementById(id).src ='<?php echo $this->_url('user/kcaptcha') .'?'; ?>'+Math.random(1);
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(){
	document.form_work.submit();
}
//-->
</SCRIPT>
</head>

<body>
<psp:tags     htmlname='user_topnav'  iconname='usertopnav' />
    
    <div class="head">
    	<div class="logo_box1 logo_margin">
        	<a href="" class="logo_box1_a"><img src="<?php echo $this->_webroot('images/logo1.gif'); ?>" alt="" /></a>
            <div class="logo_box1_span">注册</div>
        </div>        
    </div>
    
    <div class="middle_nav">
    	<div class="middle_nav_content">
        	<span class="agreement_span">还没有爱搜货账号？<a href="<?php echo $this->_url('user/agreement'); ?>" class="click_register">点击此注册</a></span>
            <ul class="step_all">
            	<li class="step_selected"><span>第一步</span></li>
                <li><span>第二步</span></li>
            </ul>
        </div>
    </div>
    
    <!-- container -->
    <div class="container border_bottom3">
    	<div class="step2_left_wrap">
		<form action="<?php echo $this->_url('/user/reg/1/');?>" method="post"  name="form_work">
        	<div class="step2_left_div">
            	<span class="step2_left_span">登录用户名：</span><input type="text" name="data[user][username]" class="step2_left_input" />
            </div>

			<?php if (isset($this->validationErrors['user']['username'])) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $this->validationErrors['user']['username']; ?></font>
            </div>	
			<?php } ?>	
			<?php if ($isuername) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $isuername;?></font>
            </div>	
		    <?php } ?>				
			
            <div class="step2_left_div">
            	<span class="step2_left_span">登&nbsp;录&nbsp;密&nbsp;码：</span><input type="password" name="data[user][password1]" class="step2_left_input" />
            </div>
			<?php if (isset($this->validationErrors['user']['password1'])) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $this->validationErrors['user']['password1']; ?></font>
            </div>	
			<?php } ?>	
			
            <div class="step2_left_div">
            	<span class="step2_left_span">重&nbsp;复&nbsp;密&nbsp;码：</span><input type="password" name="data[user][ckpassword]" class="step2_left_input" />
            </div>
			<?php if (isset($this->validationErrors['user']['ckpassword'])) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $this->validationErrors['user']['ckpassword']; ?></font>
            </div>	
			<?php } ?>

            <div class="step2_left_div">
            	<span class="step2_left_span">Email：</span><input type="text" name="data[user][email]" class="step2_left_input" />
            </div>
			<?php if (isset($this->validationErrors['user']['email'])) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $this->validationErrors['user']['email']; ?></font>
            </div>	
			<?php } ?>
			<?php if ($isemaill) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red><?php echo $isemaill;?></font>
            </div>	
		    <?php } ?>			
			
            <div class="step2_left_div">
            	<span class="step2_left_span">验&nbsp;&nbsp;&nbsp;证&nbsp;&nbsp;&nbsp;&nbsp;码：</span><input type="text" name="data[user][captcha]" class="step2_left_input1" /><span class="verification_span"><img src="<?php echo $this->_url('user/kcaptcha') .'?'. time(); ?>" id="cheimg" title="看不清，换一个" onClick="changImg('cheimg');" width="90" height='30' /><a href="#"  onClick="changImg('cheimg');" class="target_agreement">看不清楚</a></span>
            </div>
			<?php if ($invalidCaptcha) { ?>
            <div class="step2_left_div">
                <span class="step2_left_span">&nbsp;</span><font color=red>验证码错误!</font>
            </div>	
		    <?php } ?>			
			
            <div class="register_btn1 bottom1">
				<a href="javascript:" onclick="postdo()" class="register_btn1_a"  >同意以下协议并继续注册</a>
            </div>
            <div class="align_center"><a href="<?php echo $this->_url('user/agreement'); ?>" class="target_agreement">《爱搜货服务协议》</a></div>
         </form>   
        </div>

		<psp:tags     htmlname='user_reg_msg'  iconname='user_reg_msg' />
		
        <div class="clear"></div>
    </div>
    <!-- container end -->    
    
    <psp:tags     htmlname='user_login_reg_footer'  iconname='user_login_reg_footer' />
    
</body>
</html>